<% if @entry_type == "income" %>
  $('#entry-fields-<%= @entry_id %>').html('<%= escape_javascript(render("income_fields")) %>');
<% else %>
  $('#entry-fields-<%= @entry_id %>').html('<%= escape_javascript(render("expense_fields")) %>');
<% end %>
